#include "poorrichard9.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 PoorRichard9_glyphdata[357] = {
/* '!' */	0xFA00,
/* '"' */	0xB400,0x0000,0x0000,
/* '#' */	0x2424,0xFF24,0xFF24,0x2400,0x0000,0x0000,
/* '$' */	0x23AD,0x4756,0xBE20,0x0000,
/* '%' */	0x624E,0x250F,0x6148,0xA48C,0x0000,0x0000,0x0000,
/* '&' */	0x7820,0x5BD3,0x8946,0x21E0,0x0000,0x0000,0x0000,
/* ''' */	0xC000,
/* '(' */	0x6AAA,0x4000,
/* ')' */	0xA556,0x8000,
/* '*' */	0xE000,
/* '+' */	0x0109,0xF210,0x0000,0x0000,
/* ',' */	0x0200,
/* '-' */	0x0000,0x0F00,0x0000,
/* '.' */	0x0200,
/* '/' */	0x0420,0x8420,0x8410,0x8000,0x0000,
/* '0' */	0x6999,0x9960,0x0000,
/* '1' */	0x5924,0xB800,0x0000,
/* '2' */	0x7462,0xA221,0xE000,0x0000,
/* '3' */	0x708E,0x10CF,0xC000,0x0000,
/* '4' */	0x1195,0x2F88,0xE000,0x0000,
/* '5' */	0xE8E9,0x19E0,0x0000,
/* '6' */	0x68B9,0x9960,0x0000,
/* '7' */	0xFC84,0x4210,0xC000,0x0000,
/* '8' */	0x69D6,0x9960,0x0000,
/* '9' */	0x6999,0x7160,0x0000,
/* ':' */	0x0A00,
/* ';' */	0x0A00,
/* '<' */	0x01C8,0xC000,0x0000,
/* '=' */	0x003E,0x0F80,0x0000,0x0000,
/* '>' */	0x0313,0x8000,0x0000,
/* '?' */	0x69D3,0x4040,0x0000,
/* '@' */	0x3C43,0x99A9,0xB6C0,0x3C00,0x0000,0x0000,
/* 'A' */	0x1020,0xA145,0x88BB,0x8000,0x0000,0x0000,
/* 'B' */	0xF124,0x9E45,0x1F80,0x0000,0x0000,
/* 'C' */	0x3D18,0x2081,0x1380,0x0000,0x0000,
/* 'D' */	0xF889,0x0A14,0x28BE,0x0000,0x0000,0x0000,
/* 'E' */	0xF21C,0x8423,0xE000,0x0000,
/* 'F' */	0xFA1C,0x8423,0x8000,0x0000,
/* 'G' */	0x3D18,0x208D,0x1380,0x0000,0x0000,
/* 'H' */	0xEE89,0x7224,0x48BB,0x8000,0x0000,0x0000,
/* 'I' */	0xE924,0xB800,0x0000,
/* 'J' */	0x7222,0x22E0,0x0000,
/* 'K' */	0xED27,0x1851,0x2E40,0x0000,0x0000,
/* 'L' */	0xE210,0x8423,0xE000,0x0000,
/* 'M' */	0xC342,0x666A,0x5A42,0xE700,0x0000,0x0000,
/* 'N' */	0xCEC9,0x92A4,0xC9B9,0x0000,0x0000,0x0000,
/* 'O' */	0x388A,0x0C18,0x288E,0x0000,0x0000,0x0000,
/* 'P' */	0xF252,0xB423,0x8000,0x0000,
/* 'Q' */	0x388A,0x0C18,0x2A9E,0x0406,0x0000,0x0000,
/* 'R' */	0xF124,0x9451,0x2E40,0x0000,0x0000,
/* 'S' */	0x79C2,0x19E0,0x0000,
/* 'T' */	0xF908,0x4211,0xC000,0x0000,
/* 'U' */	0xEE89,0x1224,0x488E,0x0000,0x0000,0x0000,
/* 'V' */	0xEE89,0x1142,0x8204,0x0000,0x0000,0x0000,
/* 'W' */	0xE1D3,0x24C8,0xB42D,0x0481,0x2000,0x0000,0x0000,0x0000,
/* 'X' */	0xCD23,0x0C31,0x2CC0,0x0000,0x0000,
/* 'Y' */	0xEE88,0xA081,0x020E,0x0000,0x0000,0x0000,
/* 'Z' */	0xFC88,0x4447,0xE000,0x0000,
/* '[' */	0xEAAA,0xC000,
/* '\' */	0x8204,0x0820,0x4102,0x0400,0x0000,
/* ']' */	0xD555,0xC000,
/* '^' */	0x06A9,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x00F8,0x0000,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x0006,0x2AF0,0x0000,
/* 'b' */	0xC210,0xE4A7,0xC000,0x0000,
/* 'c' */	0x0007,0x9870,0x0000,
/* 'd' */	0x3084,0xE949,0xE000,0x0000,
/* 'e' */	0x0006,0xB860,0x0000,
/* 'f' */	0x2974,0xB800,0x0000,
/* 'g' */	0x0088,0xE513,0x7170,0x0000,
/* 'h' */	0xC210,0xE52B,0x6000,0x0000,
/* 'i' */	0x0864,0xB800,0x0000,
/* 'j' */	0x1355,0x8000,
/* 'k' */	0xC210,0xB62B,0xE000,0x0000,
/* 'l' */	0xC924,0xB800,0x0000,
/* 'm' */	0x0000,0x07E5,0x4AB5,0x8000,0x0000,0x0000,
/* 'n' */	0x0001,0xE52B,0x6000,0x0000,
/* 'o' */	0x0006,0x9960,0x0000,
/* 'p' */	0x0001,0xE4A5,0xC880,0x0000,
/* 'q' */	0x0000,0xF949,0xC210,0x0000,
/* 'r' */	0x0074,0xB000,0x0000,
/* 's' */	0x0078,0xF800,0x0000,
/* 't' */	0x0174,0x9800,0x0000,
/* 'u' */	0x0001,0xA529,0xE000,0x0000,
/* 'v' */	0x0001,0xF528,0x8000,0x0000,
/* 'w' */	0x0001,0x5AED,0x4000,0x0000,
/* 'x' */	0x0009,0x6690,0x0000,
/* 'y' */	0x000D,0x5571,0x6000,
/* 'z' */	0x0075,0x3800,0x0000,
/* '{' */	0x5595,0x4000,
/* '|' */	0xFF80,
/* '}' */	0x8922,0x9280,0x0000,
/* '~' */	0x0000,0x31BC,0x0000,0x0000,0x0000,
/* 0x7F */	0x0F99,0x99F0,0x0000,
};

static const u16 PoorRichard9_offset[95] = {
    0,    1,    4,   10,   14,   21,   28,   29,   31,   33,   34,   38,   39,   42,   43,   48,
   51,   54,   58,   62,   66,   69,   72,   76,   79,   82,   83,   84,   87,   91,   94,   97,
  103,  109,  114,  119,  125,  129,  133,  138,  144,  147,  150,  155,  159,  165,  171,  177,
  181,  187,  192,  195,  199,  205,  211,  219,  224,  230,  234,  236,  241,  243,  246,  250,
  252,  255,  259,  262,  266,  269,  272,  276,  280,  283,  285,  289,  292,  298,  302,  305,
  309,  313,  316,  319,  322,  326,  330,  334,  337,  340,  343,  345,  346,  349,  354
};

static const u8 PoorRichard9_width[95] = {
 1, 3, 8, 5, 9, 9, 1, 2, 2, 1, 5, 1, 4, 1, 6, 4,
 3, 5, 5, 5, 4, 4, 5, 4, 4, 1, 1, 3, 5, 3, 4, 8,
 7, 6, 6, 7, 5, 5, 6, 7, 3, 4, 6, 5, 8, 7, 7, 5,
 7, 6, 4, 5, 7, 7,10, 6, 7, 5, 2, 6, 2, 4, 5, 2,
 4, 5, 4, 5, 4, 3, 5, 5, 3, 2, 5, 3, 7, 5, 4, 5,
 5, 3, 3, 3, 5, 5, 5, 4, 4, 3, 2, 1, 3, 6, 4
};

PoorRichard9::PoorRichard9(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	PoorRichard9_glyphdata,
	PoorRichard9_offset,
	PoorRichard9_width,
	12,
	3,
	6,
	10
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
